// pages/shop/shop.js
Page({
  data:{
    goods: {
      id: 1,
      image: '/images/666.png',
      title: '键盘',
      price: 100,
      detail: '目前最高出价',
      parameter: '双模键盘',
      service: '无',
      now_price: 0,
      buyer:""
    },
    num: 1,
    totalNum: 0,
    hasCarts: false,
    curIndex: 0,
    show: false,
    scaleCart: false
  },

  addCount() {
    let num = this.data.num;
    num++;
    this.setData({
      num : num
    })
  },

  bindTap(e) {
    const index = parseInt(e.currentTarget.dataset.index);
    this.setData({
      curIndex: index
    })
  }
 
})